<%@ page language="java" %>
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ page import="java.util.*" %>
<%@ page import="java.net.URLEncoder" %>
<%@ page import="com.sisuntech.common.*" %>
<%@ page import="com.sisuntech.cntmgr.*" %>
<%@ page import="com.sisuntech.org.*" %>
<%@ page import="leesoft.hub.actions.*" %>

<%
 UserBase curUser = (UserBase)request.getSession().getAttribute(AppConstants.Session_User);
 if(curUser == null)response.sendRedirect("../systemBase/login.jsp");
 else
 {
   String curContentTypeName = "tap_application"; 
   String curCatFullPath = "/";
   String toUrl = "../systemBase/listAdmin/contentList.do?contentTypeName=" + curContentTypeName + "&catFullPath=" + curCatFullPath;    
   
   String uid = (String)SessionContext.getInstance(request).get("areacode");
   System.out.println("uid is:" + uid);
   String fixCondition = "c.unit = '" + uid + "'";
   toUrl += "&fixCondition=" + URLEncoder.encode(fixCondition, "UTF-8");

   response.sendRedirect(toUrl);
 }  
%>
